﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZP.DTO.ep_base_info;
using ZP.DTO.ep_ht;
using ZP.DTO.ht_type1_title;
using ZP.Model;

namespace ZP.DTO.ep_honor_title
{
    public class ht_honor_titleResultDTO
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public ht_honor_titleResultDTO()
        {
            this.ep_ht = new HashSet<ep_htResultDTO>();
            this.ht_type1_title = new HashSet<ht_type1_titleResultDTO>();
        }

        public int ht_id { get; set; }
        public Nullable<int> ht_pid { get; set; }
        public string ht_title { get; set; }
        public Nullable<byte> ht_type { get; set; }
        public Nullable<int> ht_sort { get; set; }
        public int state { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<ep_htResultDTO> ep_ht { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<ht_type1_titleResultDTO> ht_type1_title { get; set; }

        #region 扩展属性
        public string pid_title { get; set; }   //ht_pid对应的ht_title
        public string type_cn { get { return ht_type == 1 ? "附件" : ht_type == 2 ? "文字" : "数字"; } } //ht_type对应的中文 1.附件 2.文字 3.数字

        #endregion

    }
}
